//
// Created by 刘禹晨 on 5/19/16.
// Copyright (c) 2016 刘禹晨. All rights reserved.
//

#import "LineLayer.h"


@implementation LineLayer

-(void)drawInContext:(CGContextRef)ctx {

    CGMutablePathRef path = CGPathCreateMutable();

    //if(direction == RIGHT){
        CGPathMoveToPoint(path,NULL,0,0);
        CGPathAddLineToPoint(path,NULL,self.bounds.size.width,self.bounds.size.height);
    //}else{
        //CGPathMoveToPoint(path,NULL,rect.size.width,0);
        //CGPathAddLineToPoint(path,NULL,0,rect.size.height);
    //}

    CGContextAddPath(ctx,path);

    CGContextStrokePath(ctx);
    CGPathRelease(path);

}

@end